package com.arox.springinaction.integration;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class IntegrationMain {
    public static void main(String[] args) {
	String nameOfSpringIntegrationXmlConfigurationFile = args[0];
	ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(nameOfSpringIntegrationXmlConfigurationFile) ;
	applicationContext.start();
	try {
	    Thread.sleep(30000);
	} catch (InterruptedException ex) {}
	applicationContext.stop();
    }
}
